package com.kayo.specimen.service;

import com.kayo.specimen.model.*;
import com.kayo.specimen.model.view.UserView;
import com.kayo.specimen.utility.OrderByBuilder;

import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface UserService {
    public int addUsers(User... users) throws NoSuchAlgorithmException;

    public int removeUsers(User... users);

    public int removeUsers(String... userId);

    public List<UserView> getUsers(String code, String name, String email, String order);

    public int updateUsers(User... users);

    public int grantRoles(String userId,String... roles);

    public int revokeRoles(String userId,String... roles);

    public int revokeRoles(UserRole... userRoles);

    public List<Role> getGrantedRoles(String userId);

    public List<Menu> getGrantedMenus(String userId);

    public List<Privilege> getGrantedPrivileges(String userId);
}
